package com.hx.product.domain;

import com.hx.common.annotation.Excel;
import com.hx.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 商品属性对象 pro_attribute
 * 
 * @author Chicken Brother
 * @date 2023-05-18
 */
public class Attribute extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品属性ID */
    private Long id;

    /** 关联的商品类型ID */
    @Excel(name = "关联的商品类型ID")
    private Long categoryId;

    /** 属性字段名 */
    @Excel(name = "属性字段名")
    private String attribute;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }
    public void setAttribute(String attribute) 
    {
        this.attribute = attribute;
    }

    public String getAttribute() 
    {
        return attribute;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("categoryId", getCategoryId())
            .append("attribute", getAttribute())
            .toString();
    }
}
